<?php

namespace App\Modules\Admin\Entities\Property;

use App\Models\Model;
use App\Modules\Admin\Entities\System\CompanyModel;

// 场地
class SiteModel extends Model
{
    // sys_site_tag
    protected $table='site';
    protected $primaryKey='site_id';

    public function company_info(){
        return $this->hasOne(CompanyModel::class,'company_id','company_id')->select(['company_id','company_name']);
    }
}
